package com.gds.wiki.cloud.admin.server.modular.sys.api.impl;

import com.gds.wiki.cloud.admin.client.sys.api.ResourceApi;
import com.gds.wiki.cloud.admin.client.sys.vo.vue.MenuVo;
import com.gds.wiki.cloud.admin.server.modular.sys.service.ResourceService;
import com.gds.wiki.cloud.framework.web.common.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping(ResourceApi.mapping)
public class ResourceApiImpl extends BaseController implements ResourceApi {


    @Autowired
    ResourceService resourceService;

    @Override
    public List<Map> findUserResourceByUid(Long uid) {
        return null;
    }

    public List<MenuVo> getMenu(Long uid) {
        return resourceService.getMenu(uid);
    }
}
